package com.huanletao.spring.ioc;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.Set;

/**
 * description: ImportConfigBean <br>
 * date: 2022/6/28 11:37 <br>
 * author: 踏雪无痕 <br>
 * version: 1.0 <br>
 */
public class ImportConfigBean implements ImportSelector, ImportBeanDefinitionRegistrar {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        Set<String> metaAnnotationTypes = importingClassMetadata.getMetaAnnotationTypes("");

        return new String[0];
    }

    @Override
    public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
      //  registry.registerBeanDefinition();


    }
}
